package com.buybuyyi.stylistcrm.resource.goods.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.buybuyyi.stylistcrm.resource.goods.dao.DicBrandDao;
import com.buybuyyi.stylistcrm.resource.goods.mapper.DicBrandMapper;
import com.buybuyyi.stylistcrm.resource.goods.po.DicBrand;

@Repository
public class DicBrandDaoImpl implements DicBrandDao {
	
	@Autowired
	private DicBrandMapper dicBrandMapper;

	@Override
	public Long deleteByPrimaryKey(Long id) {
		return dicBrandMapper.deleteByPrimaryKey(id);
	}

	@Override
	public Long insert(DicBrand record) {
		return dicBrandMapper.insert(record);
	}

	@Override
	public Long insertSelective(DicBrand record) {
		return dicBrandMapper.insertSelective(record);
	}

	@Override
	public DicBrand selectByPrimaryKey(Long id) {
		return dicBrandMapper.selectByPrimaryKey(id);
	}

	@Override
	public Long updateByPrimaryKeySelective(DicBrand record) {
		return dicBrandMapper.updateByPrimaryKey(record);
	}

	@Override
	public Long updateByPrimaryKey(DicBrand record) {
		return dicBrandMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<DicBrand> getAllDicBrand() {
		return dicBrandMapper.getAllDicBrand();
	} 
	
	
}